Check the coding guidelines?

Hello
as a java developer and python, I usually check coding guidelines (semi-) automatically with tools like pylint or checkstyle. But I have not found a similar tool for ActionScript. I found instructions like http://blog.dclick.com.br/2007/02/13/adobe_flex_coding_guidelines_english/ by Fabio Terracini, but not coding tools.
Made a stuffed animal - / checkstyle - like tool exist? Use the wrong with google/google groups search criteria? Someone "hacked" a tool java/javascript to take in charge of ActionScript?

Thanks in advance for your help.

Uwe

There is no tool yet checkstyle for ActionScript 3 there.

For coding guides, there is no strict coding guides imposed on developers by Adobe

You have already found the guides shared publicly known only coding made by one of the commercial company...

In my company, we created a set of guides, which is partially documented in internal Wiki of coding, but we had never took care to make these guidelines of public code...

Sorry for the lack of development in this area, but as far as I KNOW the way it is currently in ActionScript 3 world...

Tags: Flex

Similar Questions

  • coding guidelines

    Hello

    Is there an STD for the coding on test bench?

    So we have some coding guidelines to follow?

    Thanks in advance

    Biki

    Welcome Hello,

    Here are links to the best practices of TestStand - it's maybe not exactly what you are looking for, but this is the closest, I know a coding style guide.

    NI TestStand Advanced Architecture series (print)

    and here is the web site that this was derived:

    NI TestStand Advanced Architecture series (Web site)

    Although this is not a style like a C/C++ or .NET source code style guide, there are a lot of useful information that you could take advantage by creating your own TestStand coding style guide (if that's what you're looking for).

    I hope this helps.

    -Jack

  • How can I check the NDP project duplicate name?


    Hi all

    I would like to know how I can check the NDP duplicate project name? I find that some NDP is initiate serveral times with the same or similar user name name. Assuming that the name of the project was "Smart Pilot". I've always found that this project can type differently as "Smart DRIVER", "smart pilot" or even "Smart drivers. Assuming I want to validate all these name before saving by using validation or custom validation infrastructure. Is this possible?

    Assuming that it was possible, can you please guide me on the way?

    Thank you very much in advance for the entire response.

    Phaithoon W.

    Here is some examples of code for a fast validator. Note that this uses a hard coded English error message, rather than a translation. If you want to use translations instead, look at a few examples in the folder ReferenceImplementations\Validation\SourceCode\ReferenceValidation of the pack of extensibility and review the training of Validation as well as (in the ReferenceImplementations\Validation\Documentation folder).

    Note that the code provided is only for demonstration purposes and is not supported by Oracle.

    Classes:

    using System;
    using System.Data;
    using System.Xml;
    using Xeno.Data.NPD;
    using Xeno.Prodika.Application;
    using Xeno.Prodika.Services;
    using Xeno.Prodika.Validation;
    using Xeno.Prodika.Validation.Validators;
    
    namespace Oracle.Agile.PlmProcess.Validation
    {
        public class NPDUniqueProjectNameValidatorFactory : XmlConfigValidatorFactoryBase
        {
            protected override IValidator Create_Internal(XmlNode configNode)
            {
                return new NPDUniqueProjectNameValidator();
            }
        }
    
        public class NPDUniqueProjectNameValidator : BaseValidator
        {
            private const string sql = @"select 1 as dup from NPDPROJECTML where UPPER(title) = UPPER ('{0}') and FKPROJECT <> '{1}' and LANGID = {2}";
    
            public override bool Validate(IValidationContext ctx)
            {
                var project = ctx.ValidationTarget as INPDProjectDO;
                bool hasDuplicate = false;
                string sqlToExecute = String.Format(sql, project.ProjectML.Title, project.PKID, UserService.UserContext.User.PreferredLanguage);
                using (IDataReader reader = AppPlatformHelper.DataManager.newQuery().execute(sqlToExecute))
                {
                    if (reader.Read())
                    {
                        hasDuplicate = true;
                    }
                }
    
                if (hasDuplicate)
                    ctx.AddError(String.Format("A project already exists with the name '{0}'.", project.ProjectML.Title));
    
                return hasDuplicate;
            }
    
            private IUserService UserService
            {
                get { return AppPlatformHelper.ServiceManager.GetServiceByType(); }
            }
        }
    }
    

    Then, add the following to the ValidationSettings.xml file in config\Extensions:

    1. Add the validator factory, with a reference name in the config:

    
            
            
    
    

    2. Add a rule for NDP project save the event:

    
                
                    
                
    
    

    Compile the example reference in a dll and add this dll in web\npd\bin

    When you try to save a project with a duplicate name, it should now give you the error message.

  • doubt in the coding simple plsql

    Good evening everyone,
    I'm new to plsql anyone can check my coding, it's wrong in my code...



    declare
    countr varchar2 (2); country: = & country varchar (2);
    CC varchar (3);
    l_en varchar (50);
    AB nvarchar2 (50);
    Start
    Select countrycode.rrl, langname_en.rl, abrivation.rl in cc.rrl, l_en.rl, rl join res_language ab.rl internal res_relcountrylan SDR on rl.langid = rrl.langid where countrycode = countr.
    end;



    thanking you,
    Prakash

    Error report:
    ORA-06550: line 7, column 25:
    PL/SQL: ORA-00904: "R1". "" LANGNAME_EN ": invalid identifier
    ORA-06550: line 7, column 1:
    PL/SQL: SQL statement ignored

    If you see an error message the first thing that you should note is the NUMBER of the LINE where the error occurs.

    If your error message indicates its line 7. What is online 7? It is where starts your SELECT statement. So, there is a problem with the SELECT statement. Now let's see the error message.

    PL/SQL: ORA-00904: "R1". "" LANGNAME_EN ": invalid identifier

    Oracle says that langname_en is an INVALID IDENTIFIER. What does that mean? This means a column by name that langname_en does not exist in the table with alias R1. So the next thing to do is to describe the table and columns.

    DESC res_language
    
  • Check the conditional uniqueness

    Hi all

    I have a requirement where I need to check the uniqueness of two columns under certain conditions, here a sample of data and table:

    code
    () acc_allocation_limit
    ID NUMBER
    PRIMARY KEY CONSTRAINT Acc_allocation_limit_pk
    , occupancy_group VARCHAR2 (3)
    , move_reference VARCHAR2 (4000)
    )

    occupancy_group can have values "SNG", "TWN" and could thus be null
    move_reference is a free text, including and especially NULL

    Can/cannot, we have following values set:
    move_reference occupancy_group allowed
    Y               SNG          a
    Y SNG
    Y SNG
    B Y SNG
    Y               TWN          a
    Y               TWN          b
    TWN Y
    TWN Y
    N               SNG          a
    N               TWN          b
    code

    I understand, I can't have:
    CHECK constraint which can call any function in PL/SQL and so is true with a UNIQUE constraint.
    Before you INSERT or UPDATE TRIGGER, as it will result in the transfer of error.
    After INSERT or UPDATE TRIGGER, as I it comes have test the data before inserting
    COMPOSED of TRIGGERS, as I am about 10 gr 2

    I'm not ready to believe that we cannot achieve within the oracle database (assertion pre era), the problem is the insertion that happens in the java layer where it is coded as "INSERT IN...» "instead of calling any package DB, else this could be verified at the level of the package.

    It can be very easy to a point that I'm missing on the side of the DB, a help would be really appreciated.

    Thank you
    Ash

    Published by: ash0602 on July 19, 2011 15:48

    This thread might give you some ideas: http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:1249800833250

  • How to check the resources authorized for a specific organization?

    Hello

    I would check the resources authorized for a particular agency.

    I would use resources such as my driver. The cursor will move by resources with a matching name to a string, then I would choose a count (*) of a certain table that correspond to the authorized resources of a given organization. If this counter is zero, then I add this resource list resources allowed for this org.

    I would have 2 sliders, 1 loop on resources and another one through the organization.

    I know that the method getObjectsAllowed (orgKey) will give me a result set of the resource permitted for a body with the orgKey that I spend in. I'll have to loop through the result set. I want to save some coding. So, I thought that if I could put a count (*) selection of... so I don't have to go through authorized resources.

    Is there a way to select a table or a set of tables to get the resources authorized for a given org?

    Thank you

    Khanh

    Refer to the table of the ACP.

    -Kevin

  • CFC - Question about coding guidelines

    I have a question about the following article in the CF Coding guidelines


    Quote:

    {cfmxroot}
    "- wwwroot /".cfm pages on the web and .cfc Web Services
    -extensions /.
    "- components /" tree for .cfc files
    "- customtags /" tree of custom tags .cfm
    "- includes /" tree for the include files
    "- config /" tree for the configuration files

    This means that we have two paths of Custom Tag implemented in the CFMX administrator:

    {cfmxroot} / extensions/components /.
    {cfmxroot} / extensions/customtags /.

    We also have maps to the root of includes it (for cfinclude) and tags (for cfimport) tree:

    "/ cfinclude" {cfmxroot} / extensions/includes /.
    "/ customtags ' {cfmxroot} / extensions/customtags /.
  • check the existnace file before using the HOST command

    Dear all:

    We use the version of forms 6i 6.0.8.22.1

    I wrote after encoding to move a local system file to another location: following coding works to move the file.


    DECLARE

    in_file_name VARCHAR2 (100);
    in_file_path VARCHAR2 (100);
    out_file_path VARCHAR2 (100);
    the_command VARCHAR2 (2000);
    BEGIN
    in_file_name: = pk_parameter.setting('IMGSFILE');
    in_file_path: = pk_parameter.setting('IMGSPATH');
    out_file_path: = pk_parameter.setting('IMGTPATH');

    the_command: = 'move' | in_file_path | in_file_name |
    ' '|| out_file_path | out_file_name;

    Synchronize;
    Host (the_command, NO_SCREEN);
    IF this is Form_Success THEN
    Message ('error - file is not moved');
    ON THE OTHER
    Message ("file moved successfully");
    END IF;
    END;


    above code returns TRUE in stand conditions if the file is exist in the given folder or not? I checked it twice.

    1: place the file in the folder source and then run the coding, it returned message like "file moved successfully.

    2nd: the source folder is empty, when I have executed the coding, it returned message like "file moved successfully.

    Now I want to check before running the command move, if the source files exist in the source folder, if yes, then move on the other on-screen message and raise form_trigger_failure;

    any idea of guru?

    Kind regards

    Hassan Raza

    You must use the command line to do:

    host('cmd /c move '||in_file_path||in_file_name||' '||out_file_path||out_file_name, no_screen);
    

    to check if the file has been properly moved, you can use text_io:

    declare
      xfile text_io.file_type;
    begin
      xFile := text_io.fopen(out_file_path||out_file_name, 'R');
      text_io.fclose(xFile);
      --file exists
    exception
      when others then
        if text_io.is_open(xFile) then
          text_io.fclose(xFile);
        end if;
        -- file does not exist, so moving was not successful
    end;
    

    concerning

  • I am (early 2013) iMac 21.5 inch 8 GB which is sutting down then restart unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions?

    I have an iMac (early 2013 21.5 inch 8 GB) which stops and then restarts unexpectedly often more than once a day. I ran the diagnostics of material, check the permissions and disk. All are no problem. Any suggestions? I bought this machine this June last at B & H in New York.

    Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • check the size on hard drive mail account

    Hi all

    small question. Is it possible to check the size occupied on the disk by mail accounts?

    Thank you very much!

    Greetings jfs - dev,

    Thanks for posting here in Support of Apple communities. I see you are eager to see how much space to use on your Mac mail accounts. I'll be more than happy to help.

    Your profile says you have El Capitan, so for you, you can locate the Mail folder in your library to estimate the storage it uses. Here are the instructions to find this file:

    1. open Finder

    2. click on the 'Go' and 'Go to Folder' drop-down list and type "~ / Library /" without the quotes and click on 'Go '.

    3. find the "E-mail" folder, right click and choose 'Get Info'

    If you have MacOS Sierra 10.12 new version, it's a little easier:

    1. click the  button and click on 'about this Mac'

    2. click on the storage tab

    3. click on 'manage... '. »

    One on the page manage the it will break your storage and show you the storage used by the Applications, Documents, iBooks, iCloud Drive, iOS, Mail, Photos, Trash, and system files.

    Have a great week!

  • I have a strange problem with my RAM supported by installers. When I check the activity monitor, 3 installers are open and they start around 80 MB memory RAM used for about 7 or 10:08 minutes or so.

    I have a strange problem with my RAM supported by installers. When I check the activity monitor, 3 installers are open and they start around 80 MB memory RAM used for about 7 or 8 concerts after 10 minutes. I have to force them to quit, but I don't know what I am closing or why they open in the first place. Applications downloaded on iTunes?

    In addition, the Console has opened with the same message several times, but I don't know what that means.

    Any help would be appreciated.

    Hello

    The last is a picture of the Terminal window.

    Just because it lists 'Console' does not mean that it has nothing to do with this application.

    You have not said why or what you're trying to install so I can't help with that.

    You can use the activity monitor to leave their.

    After you select an item, use the X in a type of stop sign icon and confirm force quit.

    21:36 Thursday; September 15, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • How to follow the direction of Adobe 'Flash uninstall"to check the Firefox browser for the 'status' of Adobe Flash? --

    I downloaded Adobe uninstall (for Mac, OS x 10.4ff) and he ran to get rid of old shards of Adobe Flash, be very careful to follow the Adobe provided through their Web site. The last thing they ask you to do is to "Check that the uninstall is complete", by restarting your computer and then open your browser and check the status of the Flash Player. BUT it seems not to be a way to check the State of Adobe Flash Player on current versions of browsers Mozilla product.
    How can I check that the old version of 'Flash Player' is really gone?

    Firefox 41.0.2 on Mac OS X 10.8.5

    edited by e-mail from the public and robots to spammers

    See also the "tools > Modules > Plugins" (topic: addons) page and all: plugins page.

  • Just send a question to the support site that I can NOT connect on my email account after auto update of 38.3.0, cannot connect to my account to check the issue!

    I just posted a question on the last update automatic 38.3.0 it is possible to log into different e-mail accounts in a profile, only the first e-mail account. My support mozilla account is linked to one of the email accounts that I can NOT connect to. Can't connect to this email account to check the issue. Your last 38.3.0 Thunderbird is useless because it is no longer possible to log in different e-mail accounts in a profile, and your support solution is useless because you need to connect to the e-mail account to check the issue.
    How to proceed?

    You can change your email associated with your media profile.
    I have 38.3.0 and I can access all my email accounts I suggest you try the initial tests:

    Start T-bird with disabled modules.
    If it works on your module is to blame and you need to activate one by one.

    Start your operating system in safe mode with active network.
    If it works probably your antivirus is blocking or delaying. (Or driver).

  • Used to check the spelling in boxes of response on the forums

    Hello

    I switched to Firefox to chrome and noticed a big difference and it's Firefox does not check the spelling as im typing in boxes... response does not work even in this area

    Looks like install dictionary corrected, why he would come preinstalled without one and have spellchecking on default?

  • HOW CAN I CHECK THE WEBSITE WITOUT A SPLIT SCREEN

    AFTER OPENING MOZILLA, I GO to BOOKMARKS PULLING down MY EMAIL and CLICKING on IT. IT OPENS BUT ONLY ON THE SIDE LEFT, DOING A SPLIT SCREEN WITH THE FULL MOZILLA START PAGE. HOW CAN I CHANGE THIS SO THAT I CAN SEE THE ENTIRE YAHOO EMAIL.

    Check the properties for this bookmark.
    Make sure that the "show in the sidebar" is turned off.

Maybe you are looking for